using System;
using System.Collections.Generic;
using System.Text;

namespace WCFServer.BusinessLogic
{
    public class KlientManager
    {
        public WCFServer.BusinessEntities.Klient getKlient(string login)
        {
            WCFServer.DataAccess.KlientRepository rep = new WCFServer.DataAccess.KlientRepository("DBConnection");
            WCFServer.BusinessEntities.Klient klient = rep.GetClient("Karpik");
            return klient;
        }

        public void AddKlient(WCFServer.BusinessEntities.Klient klient)
        {
            WCFServer.DataAccess.KlientRepository rep = new WCFServer.DataAccess.KlientRepository("DBConnection");
            rep.Add(klient);
        }
    }
}
